/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package race.model;

/**
 *
 * @author BBXP
 */
public class Point {
    private int x;
    private int y;
    public Point(int x, int y){
        this.x = x;
        this.y = y;
    }
    public Point(){
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + this.x;
        hash = 89 * hash + this.y;
        return hash;
    }
    
    public boolean equals(Object o){
        if(o instanceof Point){
            Point p = (Point)o;
            if(p.getX() == x && p.getY() == y){
                return true;
            }
        }
        return false;
    }
    public String toString(){
        return "X:"+x+" Y:"+y;
    }
}
